﻿namespace Renci.Data.Interop.OpenGIS.Gml
{
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.opengis.net/gml")]
    [System.Xml.Serialization.XmlRootAttribute("srsName", Namespace = "http://www.opengis.net/gml", IsNullable = false)]
    public class SrsName : CodeType
    {
        /// <remarks/>
        public SrsName()
            : base()
        {

        }

        /// <remarks/>
        public SrsName(string value)
            : base(value)
        {
        }

        /// <remarks/>
        public SrsName(string value, string codeSpace)
            : base(value, codeSpace)
        {
        }

        /// <remarks/>
        public static implicit operator SrsName(string d)
        {
            return new SrsName() { Value = d };
        }

        /// <remarks/>
        public static implicit operator string(SrsName c)
        {
            return c.Value;
        }

        /// <summary>
        /// Converts to <see cref="SrsName"/> type.
        /// </summary>
        /// <param name="d">Value to convert.</param>
        /// <returns></returns>
        public static SrsName ToSrsName(string d)
        {
            return (SrsName)d;
        }

        /// <summary>
        /// Converts from <see cref="BooleanValueType"/> type.
        /// </summary>
        /// <param name="c">Value to convert.</param>
        /// <returns></returns>
        public static string FromSrsName(SrsName c)
        {
            return (string)c;
        }
    }
}
